package com.kaguya.vams.utils;

/**
 * 时间工具类
 * @author : kaguya
 * @date : 19:33 2021/8/2
 */
public class TimeUtils {

    /**
     * 毫秒转秒
     * @param oldTime
     * @return
     */
    public static Long MiniSecondsToSeconds(Long oldTime){
        return oldTime * 1000;
    }

    /**
     * 毫秒转分钟
     * @param oldTime
     * @return
     */
    public static Long MiniSecondsToMinutes(Long oldTime){
        return MiniSecondsToSeconds(oldTime) * 60;
    }

    /**
     * 毫秒转小时
     * @param oldTime
     * @return
     */
    public static Long MiniSecondsToHours(Long oldTime){
        return MiniSecondsToMinutes(oldTime) * 60;
    }

    /**
     * 毫秒转天
     * @param oldTime
     * @return
     */
    public static Long MiniSecondsToDays(Long oldTime){
        return MiniSecondsToHours(oldTime) * 24;
    }

}
